<%@ Page Language="VB" AutoEventWireup="false" CodeFile="History.aspx.vb" Inherits="Budget_History"  MasterPageFile="~/MasterPageExpandable.master" Title="Financial History"%>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc2" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc1" %>
<%@ Register Assembly="InputControls" Namespace="InputControls" TagPrefix="cc3" %>
<%@ Register Src="~/DashboardControls/DashboardPlaceHolder.ascx" TagName="SubNavPlaceHolder" TagPrefix="uc1" %>
<%@ Register Src="~/DashboardControls/DashboardPlaceHolder.ascx" TagName="DashboardPlaceHolder" TagPrefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <cc1:EditCaseSubNav ID="EditCaseSubNav2" runat="server" InvalidTabs="none" ShowCaseNotes="True" ShowEmployeeInfo="True" ShowLegalGuardianInfo="True" ShowMedicalCareProvider="True" ShowParticipantRepInfo="True" ShowPersonalInfo="True" UseTable="true" Width="862px" style="left: 229px; top: 16px" />
    <cc3:FinancialSubNav  ID="FinancialSubName" runat="server" InvalidTabs="none" ShowBudgetInfo="True" ShowSubmitSpendingPlan="True" ShowViewSpendingPlan="True" ShowGetSpendingPlan="True" ShowViewMonthlyStatement="True" ShowSubmitMonthlyStatement="True" ShowGetMonthlyStatement="True" ShowHistory="True" ShowAffirmations="true" UseTable="true" Width="862px" style="left: 229px; top: 16px" />
    
    <div style="position:relative; height:295px; left:20px; top:13px; width: 942px; overflow:auto;" id="mainDiv" runat="server">

        <table border="0" cellpadding="4" cellspacing="0">
            <tr>
                <td>
                    <h1><a id="pagecontent"><asp:Label ID="HeaderLabel" runat="server" CssClass="AdminHeader" Font-Bold="True" Font-Names="Verdana">Financial History</asp:Label>&nbsp;</a></h1>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:GridView ID="FinancialHistoryGridView" runat="server" EmptyDataText="<div style=' font-family: ms sans serif,arial,verdana,helvetica,sans-serif'>There is currently no historical data to display.</div>" HorizontalAlign="center" Width="825px" CellPadding="5" 
                            AutoGenerateColumns="False" BorderColor="#21334B" DataKeyNames="SpendingPlanId" BorderStyle="Solid" GridLines="Vertical">
                        <HeaderStyle CssClass="adminHeaderStyle" BackColor="#C3CAD4" BorderColor="#21334B" VerticalAlign="Top" />
                        <RowStyle CssClass="adminColumnStyle" />
                            <Columns>
                                <asp:BoundField DataField="SpendingPlanDateRangeDescription" HeaderText="Spending Plan Effective Dates">
                                    <ItemStyle Width="20%" />
                                </asp:BoundField>
                                <asp:BoundField DataField="BudgetAmountDescription" HeaderText="Budget">
                                    <ItemStyle Width="10%" />
                                </asp:BoundField>
                                <asp:TemplateField HeaderText="Spending Plan">
                                    <ItemStyle Width="10%" />
                                    <ItemTemplate>
                   
                                        <asp:LinkButton ID="SpendingPlanLinkButton" runat="server" Text='<%#Eval("TotalSpendingPlanAmount") %>' CommandName="GoSpendingPlan" CommandArgument='<%#Eval("SpendingPlanId") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Total Payments to Date">
                                    <ItemStyle Width="10%" />
                                    <ItemTemplate>
                                        <asp:LinkButton ID="PaymentsLinkButton" runat="server" Text='<%#Eval("TotalPayments") %>' CommandName="GoExpenditureReport" CommandArgument='<%#Eval("SpendingPlanId") %>'></asp:LinkButton>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                        <AlternatingRowStyle BackColor="#E8ECF4" />
                    </asp:GridView>                    
                </td>
            </tr>
        </table>

    </div>

</asp:Content>
